package com.tensquare.spit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import util.IdWorker;

/**
 * @BelongsProject: tensquare_parent
 * @BelongsPackage: com.tensquare.spit
 * @Author: yang
 * @CreateTime: 2019-03-06 10:41
 * @Description: ${Description}
 */

@SpringBootApplication
public class SpitApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpitApplication.class);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
